package com.fyy.service.impl;

import com.fyy.dao.UserDao;
import com.fyy.model.User;
import com.fyy.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author fyy
 * @Description
 * @Date 2020/5/26 9:42
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserDao userDao;

    public boolean addUser(User user) {
        return userDao.addUser(user);
    }

    public User queryUserById(Long id) {
        return userDao.queryUserById(id);
    }

    public List<User> queryUserList() {
        return userDao.queryUserList();
    }
}
